home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / skelet_dance.swf / scripts / DefineButton2_24 / BUTTONCONDACTION on(keyPress Down).as
Encoding:
Text File  |  2006-09-05  |  851 b   |  40 lines

  1. on(keyPress "<Down>"){
  2.    da = getProperty("/d1", _Y);
  3.    db = getProperty("/d2", _Y);
  4.    dc = getProperty("/d3", _Y);
  5.    tellTarget("/down")
  6.    {
  7.       gotoAndPlay(2);
  8.    }
  9.    if("35" < da and da < "90")
  10.    {
  11.       tellTarget("/per2")
  12.       {
  13.          gotoAndPlay(2);
  14.       }
  15.       setProperty("/d1", _Y, "5050" + getProperty("/d1", _Y));
  16.       perf += "1";
  17.       defen += "100";
  18.    }
  19.    if("35" < db and db < "90")
  20.    {
  21.       tellTarget("/per2")
  22.       {
  23.          gotoAndPlay(2);
  24.       }
  25.       setProperty("/d2", _Y, "5050" + getProperty("/d2", _Y));
  26.       perf += "1";
  27.       defen += "100";
  28.    }
  29.    if("35" < dc and dc < "90")
  30.    {
  31.       tellTarget("/per2")
  32.       {
  33.          gotoAndPlay(2);
  34.       }
  35.       setProperty("/d3", _Y, "5050" + getProperty("/d3", _Y));
  36.       perf += "1";
  37.       defen += "100";
  38.    }
  39. }
  40.